package com.glory.hikvisionmobile.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.bean.TrackOut.XSortingAndBoundsBean;

import java.util.List;

public class SortingListAdapter extends BaseQuickAdapter<XSortingAndBoundsBean, BaseViewHolder> {

    public SortingListAdapter(@Nullable List<XSortingAndBoundsBean> data) {
        super(R.layout.adapter_sorting_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, XSortingAndBoundsBean item) {
        int adapterPosition = helper.getAdapterPosition();

        helper.setText(R.id.tvLot,String.valueOf(adapterPosition + 1));
        helper.setText(R.id.tvCleanCarrier,item.getCleanCarrierId());
        helper.setText(R.id.tvX,item.getxAxis());
        helper.setText(R.id.tvY,item.getyAxis());
        helper.setText(R.id.tvPositions,item.getCleanCarrierSeq());
        helper.setText(R.id.tvWaferID,item.getWaferId());

    }


}
